package fr.afcepf.ai85.ent;

// Generated 21 mars 2013 17:20:56 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * MessageRecu generated by hbm2java
 */
@Entity
@Table(name = "message_recu", catalog = "gepeto_db")
public class MessageRecu implements java.io.Serializable {

	private Integer idMessageRecu;
	private Eleve eleve;
	private String objetMessageRecu;
	private String messageRecu;
	private Date dateMessageRecu;

	public MessageRecu() {
	}

	public MessageRecu(Eleve eleve) {
		this.eleve = eleve;
	}

	public MessageRecu(Eleve eleve, String objetMessageRecu,
			String messageRecu, Date dateMessageRecu) {
		this.eleve = eleve;
		this.objetMessageRecu = objetMessageRecu;
		this.messageRecu = messageRecu;
		this.dateMessageRecu = dateMessageRecu;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_MESSAGE_RECU", unique = true, nullable = false)
	public Integer getIdMessageRecu() {
		return this.idMessageRecu;
	}

	public void setIdMessageRecu(Integer idMessageRecu) {
		this.idMessageRecu = idMessageRecu;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ELEVE", nullable = false)
	public Eleve getEleve() {
		return this.eleve;
	}

	public void setEleve(Eleve eleve) {
		this.eleve = eleve;
	}

	@Column(name = "OBJET_MESSAGE_RECU", length = 100)
	public String getObjetMessageRecu() {
		return this.objetMessageRecu;
	}

	public void setObjetMessageRecu(String objetMessageRecu) {
		this.objetMessageRecu = objetMessageRecu;
	}

	@Column(name = "MESSAGE_RECU")
	public String getMessageRecu() {
		return this.messageRecu;
	}

	public void setMessageRecu(String messageRecu) {
		this.messageRecu = messageRecu;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATE_MESSAGE_RECU", length = 10)
	public Date getDateMessageRecu() {
		return this.dateMessageRecu;
	}

	public void setDateMessageRecu(Date dateMessageRecu) {
		this.dateMessageRecu = dateMessageRecu;
	}

}
